package com.qinhai.webcs.exception;

import com.qinhai.webcs.enums.ResultEnum;

/**
 * @ClassName MyException
 * @Deacription
 * @Author qinhai
 * @Date 2021/4/15 14:02
 * @Version 1.0
 **/
public class MyException extends RuntimeException {
    private static final long serialVersionUID = -8602241885882500083L;

    public MyException(String message) {
        super(message);
    }

    public MyException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
    }
}
